package com.lanou3g.ptp.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 创建人: 武奇
 * 创建事件: 2019/8/27
 */
@Data
public class DiaryVO implements Serializable {

    private Long id;
    private Date taskTime;
    private String content;
    @JsonIgnore
    private String img;
    private String[] imgs;
    private Boolean excellent;

    public void setImg(String img) {
        this.img = img;
        if (img != null) {
            imgs = img.split(",");
        }
    }
}
